package com.wm.comm;

import java.util.ArrayList;
import java.util.List;

import com.wm.web.ui.OptionsInt;

public class Constant {

	public static String ROOTPATH = "";

	public static final String USER_SESSION_KEY = "user_session";

	public static final String SHOPKEEPER_SESSION_KEY = "shopkeeper_session";
	
	public static final String SHOPPING_SESSION_KEY = "shopping_session";
	
	public static final String USER_COOKIE_KEY = "user_cookie";
	
	public static final String SCR_COOKIE_KEY = "scr_cookie";
	
	public static final String POINTX_COOKIE_KEY = "pointx_cookie";
	
	public static final String POINTY_COOKIE_KEY = "pointy_cookie";
	
	public static final String ADMIN_SESSION_KEY = "admin_session";

	public static final int ORDER_ASC = 0;

	public static final int ORDER_DESC = 1;
	
	public static final int PAGE_NUM = 20;
	
	public static final boolean USER_COOKIES = false; //是否允许将用户ID存cookies 
	
	public static final String WEB_NAME = "沈阳外卖网";
	
	public static final String WEB_URL = "http://localhost:8080/";//网站地址
	
	public static final String MAIL_HOST_NAME = "smtp.163.com";
	
	public static final String MAIL_CHARSET = "UTF-8";
	
	public static final String MAIL_FROM_MAIL = "ws9958@163.com";
	
	public static final String MAIL_FROM_NAME = "沈阳**";
	
	public static final String MAIL_FROM_USERNAME = "ws9958@163.com";
	
	public static final String MAIL_FROM_PASSWORD = "dlcad123";
	
	//状态
	public static List IS_SHOW = new ArrayList();
	//写字楼类型
	public static List SCRIPTORIUM_TYPE = new ArrayList();
	//饭店口味
	public static List RESTAURANT_TASTE = new ArrayList();
	//用户状态
	public static List USER_STATUS = new ArrayList();
	static {
		IS_SHOW.add(new OptionsInt(-1, "请选择"));
		IS_SHOW.add(new OptionsInt(0, "隐藏"));
		IS_SHOW.add(new OptionsInt(1, "显示"));
		
		USER_STATUS.add(new OptionsInt(-1, "请选择"));
		USER_STATUS.add(new OptionsInt(0, "未激活"));
		USER_STATUS.add(new OptionsInt(1, "激活"));
		USER_STATUS.add(new OptionsInt(2, "禁用"));
		
		
		SCRIPTORIUM_TYPE.add(new OptionsInt(-1, "请选择"));
		SCRIPTORIUM_TYPE.add(new OptionsInt(1, "写字间"));
		SCRIPTORIUM_TYPE.add(new OptionsInt(2, "住宅"));
		
		RESTAURANT_TASTE.add(new OptionsInt(-1, "请选择"));
		RESTAURANT_TASTE.add(new OptionsInt(0, "没有分类"));
		RESTAURANT_TASTE.add(new OptionsInt(1, "中式"));
		RESTAURANT_TASTE.add(new OptionsInt(2, "西式"));
		RESTAURANT_TASTE.add(new OptionsInt(3, "港式"));
	}


}
